package com.zjhd.sealcutting.service;

import com.zjhd.sealcutting.param.LoginParam;
import com.zjhd.sealcutting.utils.response.ResponseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * TODO 用户登录
 *
 * @author wangchao
 * @version 1.0
 * @date 2020/11/23 10:17
 */
public interface LoginService {

    /**
     * TODO  用户登录
     * @author wangchao
     * @date 2020/11/23 10:28
     * @param
     * @return
     */
    ResponseResult signIn(HttpServletRequest request, HttpServletResponse response, LoginParam param)throws Exception;

    /**
     * TODO  验证用户登录手机号是否存在
     * @author wangchao
     * @date 2020/11/23 11:20
     * @param
     * @return
     */
    boolean checkMobile(String mobile)throws Exception;

    /**
     * TODO  根据手机号发送短信验证码
     * @author wangchao
     * @date 2020/11/23 13:58
     * @param
     * @return
     */
    ResponseResult sendMobileSmsVerificationCode(LoginParam param)throws Exception;
}
